package desgin.pattern.construtor.factory.simplefactroy;

public class Factory {

    public BMW createBmw(int type) {
        switch (type) {
        case 320:
            return new BMW320();
        case 523:
            return new BMW523();

        default:
            break;

        }
        return null;
    }
}
